package com.jianzhile.jobs.activities.mine;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.jianzhile.jobs.R;
import com.jianzhile.jobs.activities.person.PerfectInfoActivity;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Create by terry 16/3/3
 * 我的简历
 */
public class MyResumeActivity extends AppCompatActivity implements View.OnClickListener{

    @Bind(R.id.activity_my_resume_edit_tv)
    TextView editTv;
    @Bind(R.id.alert_bar_button)
    Button editBt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_resume);

        ButterKnife.bind(this);

        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);



        final ActionBar ab = getSupportActionBar();
        ab.setElevation(0);
        ab.setDisplayHomeAsUpEnabled(true);
        ab.setDefaultDisplayHomeAsUpEnabled(true);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                MyResumeActivity.this.finish();
            }
        });
        ab.setTitle("");

        initListener();
    }

    private void initListener(){
        editTv.setOnClickListener(this);
        editBt.setOnClickListener(this);
    }
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.activity_my_resume_edit_tv:
                Intent intent = new Intent(MyResumeActivity.this, PerfectInfoActivity.class);
                startActivity(intent);

                break;
            case R.id.alert_bar_button:
                Intent intent2 = new Intent(MyResumeActivity.this, PerfectInfoActivity.class);
                startActivity(intent2);
                break;
        }
    }
}
